<div class="page-body">
    <a class="btn btn-default purple" href="{:U('Student/add')}" style="margin-bottom: 15px;"><i class="fa fa-plus"></i>
        新增学生1
    </a>
    <a class="btn btn-default purple" href="{:U('export')}" style="margin-bottom: 15px;"><i class="glyphicon glyphicon-cloud-download"></i>
        导出学生
    </a>
    <div class="row">
        <div class="col-xs-12 col-md-12">
            <div class="widget">
                <div class="widget-header ">
                    <span class="widget-caption">{$classname.class_name}下的班级列表</span>
                    <div class="widget-buttons">
                        <a href="#" data-toggle="maximize">
                            <i class="fa fa-expand"></i>
                        </a>
                        <a href="#" data-toggle="collapse">
                            <i class="fa fa-minus"></i>
                        </a>
                        <a href="{:U('index')}" >
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="widget-body">
                    <table class="table table-striped table-hover">
                        <thead>
                        <tr>
                            <th>
                                学生ID
                            </th>
                            <th>
                                名称
                            </th>
                            <th>
                                状态
                            </th>
                        </tr>
                        </thead>

                        <tbody>
                        <foreach name="classdata" item="v">
                            <tr>
                                <td>
                                    {$v.stu_id}
                                </td>
                                <td>
                                    {$v.stu_name}
                                </td>
                                <td>
                                    <if condition =" $v.status== 0 " ><a href="U('bind',array('stu_id'=>$v['stu_id']))">绑定</a>
                                        <else/><a href="U('Grade/nobind',array('stu_id'=>$v['stu_id']))">解绑</a>
                                    </if>

                                </td>

                                <td>
                                    <a class="btn btn-info btn-xs"
                                       href="{:U('chilschool/classstu',array('class_id'=>$v['class_id']))}">
                                        <i class="fa fa-edit"></i> 查看学生
                                    </a>
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                    {$page}
                </div>
            </div>
        </div>
    </div>
</div>